import { request } from 'umi';

// import {} from './API';

//开门记录
export async function queryOpenRecordChartAPI(params?: { type: string }) {
  return request<API.APIReturnType<any>>('/api/door/openRecordChart', { params: params || {} });
}

export async function queryDoorDeviceStatusAPI() {
  return request<API.APIReturnType<any>>('/api/door/deviceStatus');
}

export async function queryOpenRecordPieAPI() {
  return request<API.APIReturnType<any>>('/api/door/openRecordPie');
}
export async function queryAlarmDoorListAPI() {
  return request<API.APIReturnType<any>>('/api/alarm/alarmDoorList');
}
export async function queryRunAlarmAPI(params: API.TimeTableParmasType) {
  return request<API.APIReturnType<any>>('/api/alarm/runAlarm', { params: params || {} });
}
export async function queryOpenRecordCountAPI(params: API.TimeTableParmasType) {
  return request<API.APIReturnType<any>>('/api/door/openRecordCount', { params: params || {} });
}
